secureOrigins

Adds the given origins to the white list, so that they will be treated as secure origins.

Each origin passed to this method should be an origin or hostname pattern up to eTLD+1. For example, the passed list may contain the following:

  • "http://foo.com"

  • "http://foo.com:8000"

  • "*.foo.com"

  • ".foo..bar.com"

  • "http://*.foo.bar.com"

But not the following:

  • "*.co.uk"

  • "*.com"

  • "test.*.com"

Hostname patterns must contain a wildcard somewhere (so "test.com" is not a valid pattern) and wildcards can only replace full components (test*.foo.com" is not valid too).

Has the same effect as adding --unsafely-treat-insecure-origin-as-secure switch.

*/